<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Rep\OrderFieldLogRep;
use Illuminate\Http\Request;

class OrderFieldLog extends Controller
{
    //列表字段设置
    protected $rep;

    public function __construct(Request $request)
    {
        $this->rep = new OrderFieldLogRep();
    }

    //添加
    public function addOrderFieldLog(Request $request){
        $params = $request->all();
        $data = $this->rep->addOrderFieldLogRep($params);
        return re(0,$data,'success');
    }

    //获取要显示的字段
    public function getOrderFieldLogList(Request $request){
        $params = $request->all();
        $data = $this->rep->getOrderFieldLogListRep($params);
        return re(0,$data,'success');
    }

    //设置要显示的字段
    public function setOrderFieldLogList(Request $request){
        $params = $request->all();
        $this->rep->setOrderFieldLogRep($params);
        return re(0,[],'success');
    }


}
